﻿function hataver(xhr, status, error) {
    var err = eval("(" + xhr.responseText + ")");
    $('#hata').empty();
    $('#hata').append(err.Message);
    if (err.Message == 'Authentication failed.') {
        pathArray = window.location.pathname.split('/');
        host = pathArray[2];


        window.location = "http://" + window.location.host + "/error.aspx?err='geberik error'";
        //window.location.hostname
    }
    $('#hata').dialog({
        modal: true,
        width: 450,
        buttons: {
            "Kapat": function () {
                $(this).dialog("close");
            }
        }
    });
};
function mesajVer(mesaj) {
    $('#hata').empty();
    $('#hata').append(mesaj);
    $('#hata').dialog({
        modal: true,
        width: 450,
        buttons: {
            "Kapat": function () {
                $(this).dialog("close");
            }
        }
    });
}
